package org.example.tlias.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.example.tlias.pojo.Dept;

import java.util.List;

@Mapper
public interface DeptMapper {

    List<Dept> findAll();
    void deleteById(Integer id);
    void save(Dept dept);

    @Select("select id, name, create_time, update_time from dept where id=#{id}")
    Dept getById(Integer id);

    void update(Dept dept);
}
